package com.carb.dto;

import com.carb.enums.UserGender;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

@Data
@Schema(description = "新增用户传递的数据模型")
public class UserAddDTO implements Serializable {

    @Schema(description = "用户名",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String username;

    @Schema(description = "姓名",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @Schema(description = "性别",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private UserGender gender;

    @Schema(description = "年龄",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer age;

    @Schema(description = "移动电话",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String mobilePhone;

    @Schema(description = "身份证号码",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String idNumber;

    @Schema(description = "电子邮箱",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String email;

    @Schema(description = "地址",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String address;

    @Schema(description = "头像链接",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String avatarUrl;

}
